package Part;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;

import model.ProgBob;


public class PartString extends Part
{
    private String myText;
    private Font myFont;

    public PartString (Font font, double x, double y, double vx, double vy, String text, double speed)
    {
        super(x, y, vx, vy, speed);
    	myText = text;
        myFont = font;
    }
    
    public void setFont(Font font)
    {
    	myFont = font;
    }
    
    @Override
    public void render(Graphics2D g)
    {
    	g.setFont(myFont);
        g.setColor(Color.WHITE);
        g.drawString(myText, (int) getX(), (int) getY());
    }
}
